.class Llt/noframe/gpsfarmguide/views/FragmentSettings$4;
.super Ljava/lang/Object;
.source "FragmentSettings.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/FragmentSettings;->showSelected()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentSettings;)V
    .locals 0

    .line 201
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$4;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreferenceClick(Landroid/preference/Preference;)Z
    .locals 4

    .line 205
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$4;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    const-string v0, "android.permission.WRITE_EXTERNAL_STORAGE"

    invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I

    move-result p1

    const/4 v1, 0x1

    if-nez p1, :cond_0

    .line 206
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$4;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/views/FragmentSettings;->startSaveBackupPicker()V

    goto :goto_0

    .line 208
    :cond_0
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x17

    if-lt p1, v2, :cond_1

    .line 209
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentSettings$4;->this$0:Llt/noframe/gpsfarmguide/views/FragmentSettings;

    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    aput-object v0, v2, v3

    const-string v0, "android.permission.READ_EXTERNAL_STORAGE"

    aput-object v0, v2, v1

    const/16 v0, 0x466

    invoke-virtual {p1, v2, v0}, Landroid/app/Activity;->requestPermissions([Ljava/lang/String;I)V

    :cond_1
    :goto_0
    return v1
.end method
